package com.baichen.spring;

@Component
public class HelloBeanProcesser implements BeanPostProcesser {
    @Override
    public Object beforeInitializeBean(Object bean, String beanName) {
        System.out.println("hello beforeInitializeBean: " + beanName);
        return bean;
    }

    @Override
    public Object afterInitializeBean(Object bean, String beanName) {
        System.out.println("hello afterInitializeBean: " + beanName);
        return bean;
    }
}
